from flask import Blueprint, render_template, g
from common.libs.Helper import ops_render
route_index = Blueprint("index_page", __name__)

# 最原始使用g变量
# @route_index.route('/')
# def index():
#     current_user = g.current_user
#     return render_template('/index/index.html', current_user=current_user)

# (进阶)改为统一渲染ops_render
@route_index.route('/')
def index():
    return ops_render("/index/index.html")


